package com.threeti.mecool.framework.dao;

import com.threeti.mecool.framework.domain.DomainEntity;

/**
 * 实体已经存在异常
 *
 * @author Jay Meng
 */
public class EntityAlreadyExistException extends RuntimeException {
  public static final String MSG = "已经存在";

  public EntityAlreadyExistException(Class<? extends DomainEntity> domainEntityClazz, Throwable cause) {
    super(domainEntityClazz.getSimpleName() + MSG, cause);
  }

  public EntityAlreadyExistException(String message, Throwable cause) {
    super(message, cause);
  }

}
